<template>
  <view class="gift-purchase">
  <view class="header">
    <view><uni-status-bar></uni-status-bar></view>

    <view class="search-box flex-cn">
      <view class="navbar-left flex-cn" style="flex: 1" @click="backHome">
        <view
          style="width: 100rpx;color: #fff; text-align: center"
          class="qh-rt-single qh-rt-zuo-zuo navbar-back-icon"
        >
        </view>
      </view>

      <view
        style="
          height: 80rpx;
          line-height: 80rpx;
          font-size: 36rpx;
          font-family: '.PingFang SC, PingFang SC';
          display: flex;
          justify-content: center;
          align-content: center;
          flex: 1;
          color: #fff;
          font-weight: 600;
        "
      >
        {{ title }}
      </view>
      <view style="width: 320rpx; flex: 1"></view>
    </view>
  </view>


  <view class=" shuom-benner_footer">
    <view class="container">
      <!-- Main Card -->
      <view class="card">
        <!-- Header -->
        <!-- <view class="card-header">
          <text class="header-title">【团购洽谈】</text>
        </view> -->

        <!-- Content -->
        <view class="card-content">
          <text class="greeting">尊敬的顾客朋友们：</text>
          <text class="message">
            　　　在这个充满喜悦与温馨的岁末年初，时福全球购特此宣布，从今日直至春节期间，我们将全力以赴，专注于为您提供最丰富、最优质的年货选择。
            　　　我们深知，年货不仅仅是节日的物资准备，更是传递爱与祝福的媒介。因此，时福精心挑选了一系列年货精品，包括但不限于传统美食、健康礼盒、精美装饰品以及各类节日必需品，旨在满足您与家人共度佳节的所有需求。
            　　　在此期间，时福全球购承诺：
            　　　专属供应：我们只专注于年货的筹备与供应，确保每一份商品都能承载满满的心意与祝福。
            　　　品质保证：所有年货均经过严格筛选与质量把控，让您买得放心，用得舒心。
            　　　便捷服务：提供线上选购，快递到家的购物方式，让您的年货采购更加轻松便捷。
            　　　时福全球购愿成为您春节庆典中的温馨伙伴，用我们的用心与热情，为您和家人带来一个难忘的新春佳节。欢迎莅临时福全球购平台，开启您的年货采购之旅，让我们共同迎接充满希望与喜悦的新一年！
          </text>

          <view class="signature">时福全球购团队 敬上</view>
        </view>
      </view>
    </view>
  </view>
</view>
</template>

<script>
export default {
data() {
  return {
    title: "公告",
    isTop: true,
    isScrolled: false,
  };
},
computed: {
  headerStyle() {
    return `background-image: ${
      this.isTop
        ? 'url("https://safood-1317438654.cos.ap-guangzhou.myqcloud.com/tempImage/173494563867692b66b028b.png")'
        : "none"
    }`;
  },
  styleColor() {
    return `color: ${this.isTop ? "#fff" : "#000 "}`;
  },
},
methods: {
  backHome() {
    uni.navigateBack();
  },
  makePhoneCall() {
    uni.makePhoneCall({
      phoneNumber: '15959296192', // Replace with actual phone number
      fail(err) {
        console.error('Phone call failed:', err)
      }
    })
  },
  openLocation() {
    // Replace with actual coordinates
    uni.openLocation({
      latitude: 24.4800,
      longitude: 118.1000,
      name: '君临宝邸商场',
      address: '厦禾路689号君临宝邸商场1层东南角',
      fail(err) {
        console.error('Opening location failed:', err)
      }
    })
  },
  handleQrTap() {
    console.log('二维码被点击');
    uni.showToast({
      title: '长按可以识别二维码',
      icon: 'none'
    });
  },
},
};
</script>

<style lang="scss" scoped>

.offline-center{
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.gift-purchase {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  overflow-y: auto;
}

.header{
  background-color: #fff;
  position: sticky;
  top: 0px;
  z-index: 99;
  background-color: #f5f5f5;
background-image: url('https://safood-1317438654.cos.ap-guangzhou.myqcloud.com/tempImage/173494563867692b66b028b.png');
background-size: 100% 100%;
background-repeat: no-repeat;
}

.shuom-benner_footer {
  flex: 1;
  overflow-y: auto;
  height: calc(100vh - 180rpx);
}
</style>

<style >
.action-text{
font-size: 24rpx;
color: #000;
padding: 10rpx 20rpx;
background-color: #EEEEEE;
border-radius: 32rpx;
text-align: center;
width: 100rpx;
}

.container {
padding: 0;
min-height: 100vh;
width: 100%;
padding-bottom: env(safe-area-inset-bottom);
}

.card {
background-color: transparent;
border-radius: 20rpx;
/* padding: 50rpx; */
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
background-image: url('https://safood-1317438654.cos.ap-guangzhou.myqcloud.com/tempImage/1735006999676a1b17eb2d9.png');
background-size: 100% 100%;
background-position: center;
display: flex;
flex-direction: column;
margin: 20rpx;
height: 1146rpx;
}

.card-header {
margin-bottom: 30rpx;
display: flex;
align-items: center;
justify-content: center;
color: #DA5C47;
}

.header-title {
font-size: 36rpx;
color: #333;
font-weight: bold;
}

.greeting {
font-size: 32rpx;
color: #333;
/* margin-bottom: 20rpx; */
display: block;
font-weight: 600;
}

.message {
font-size: 28rpx;
color: #666;
line-height: 1.6;
display: block;
text-indent: 2em;
font-weight: 600;
margin-top: 20rpx;
margin-bottom: 20rpx;
}

.contact-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx;
}

.contact-text {
font-size: 28rpx;
color: #333;
}

.icon-wrapper {
width: 64rpx;
height: 64rpx;
flex-shrink: 0;
margin-right: 20rpx;
}

.icon {
width: 100%;
height: 100%;
}

.phone-numbers {
display: flex;
flex-direction: column;
gap: 10rpx;
margin-left: 20rpx;
}

.phone-content {
width: 100%;
display: flex;
flex-direction: column;
}

.phone-content > view:first-child {
display: flex;
align-items: center;
margin-bottom: 15rpx;
}

.phone-action {
align-self: flex-start;
margin-left: 84rpx;
padding: 8rpx 20rpx;
}

.qr-section {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40rpx 0;
background-color: #fff;
border-radius: 16rpx;
width: 100%;
position: relative;
z-index: 1;
}

.qr-codes-container {
display: flex;
/* justify-content: space-around; */
flex-direction: column;
align-items: center;
width: 100%;
padding: 0 20rpx;
}

.qr-code-item {
display: flex;
flex-direction: column;
align-items: center;
width: 300rpx;
padding: 20rpx;
}

.qr-code {
width: 100%;
height: 300rpx;
background-color: #fff;
}

.qr-text {
margin-top: 20rpx;
font-size: 28rpx;
color: #333;
font-weight: 400;
text-align: center;
width: 100%;
}

.location-content {
width: 100%;
display: flex;
flex-direction: column;
}

.location-content > view:first-child {
display: flex;
align-items: center;
margin-bottom: 15rpx;
}

.location-action {
align-self: flex-start;
margin-left: 84rpx;
padding: 8rpx 20rpx;
}

.card-content {
flex: 1;
display: flex;
flex-direction: column;
gap: 20rpx;
padding: 50rpx;
}

.signature {
text-align: right;
font-size: 28rpx;
color: #333;
font-weight: 600;
padding-right: 20rpx;
}
</style>

<style lang="scss" scoped>
.shuom-describe-container {
padding: 30rpx;
}

.shuom-describe-card {
position: relative;
width: 100%;
border-radius: 20rpx;
overflow: hidden;
}

.shuom-describe-bg-image {
width: 100%;
height: auto;
display: block;
}

.shuom-describe-content {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding: 40rpx;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding-bottom: 60rpx;
}

.shuom-describe-text-content {
.shuom-describe-paragraph {
  display: block;
  color: #333;
  font-size: 28rpx;
  line-height: 1.5;
  margin-bottom: 20rpx;
  text-indent: 2em;
  font-weight: 600;

  &:last-child {
    margin-bottom: 0;
  }
}
}
</style>
